import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
# 窗口最大化
driver.maximize_window()

driver.get("https://baidu.com")
# driver.find_element(By.NAME,"wd").send_keys("唐朝诡事录")
driver.find_elements(By.NAME,"wd")[0].send_keys("唐朝诡事录")

time.sleep(5)
driver.close()
